package test1230pm;

// 原则：类设计的是否合理：一句话是否能说清楚！

// Java基础语法部分的目标：实现方法、调用方法

// Java面向对象部分的目标：实现类、使用类

public class Emp {

    private String name;

    String schoolName;
    String schoolTel;

    String companyName;
    String companyTel;


    Dept dept;

    public Emp() {
    }

    public Emp(String name) {
        this.name = name;
    }

    public Emp(String name, Dept dept) {
        this.name = name;
        this.dept = dept;
    }

    public Emp(Dept dept) {
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "name='" + name + '\'' +
                ", dept=" + dept +
                '}';
    }
}